﻿using KinonekoSoftware.CodariaDB.Documents.DataParts.Modules.RVE;

namespace KinonekoSoftware.CodariaDB.Documents.DataParts.Modules
{
    public sealed class Element_Numeric : ModuleElement, IMetadataSupport, IHybridModuleBlock, IMainVisualRowElement
    {
        public int    Maximum  { get; set; }
        public int    Minimum  { get; set; }
        public int    Value    { get; set; }
        public string Suffix   { get; set; }
        public string Color    { get; set; }
        public string Metadata { get; set; }


        public override ModuleElement Clone() => new Element_Numeric
        {
            Id          = Id,
            Title       = Title,
            Description = Description,
            Suffix      = Suffix,
            Index       = Index,
            Metadata    = Metadata,
            Maximum     = Maximum,
            Minimum     = Minimum,
            Color       = Color,
            Value       = Value,
        };

        IHybridModuleBlock IHybridModuleBlock.Clone() => (IHybridModuleBlock)Clone();
        IMainVisualRowElement IMainVisualRowElement.Clone() => (IMainVisualRowElement)Clone();
    }
}